package com.charactereducation.admin.controller.activity;

import com.charactereducation.admin.service.ActivityServiceClient;
import com.charactereducation.webcore.controller.BaseController;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * Created by Baggio on 2017/2/22.
 */
@RequestMapping("/activity")
@Controller
public class ActivityContorller extends BaseController {
    @Autowired
    ActivityServiceClient activityServiceClient;

    @RequestMapping(value = "/activityList")
    public ModelAndView activityList() {
        ModelAndView mov = new ModelAndView();
        mov.setViewName("activity/activityList");
        PageInfo pageInfo=activityServiceClient.pageInfo(super.showRequestParameters());
        mov.addObject("pageInfo",pageInfo);
        return mov;

    } @RequestMapping(value = "/activity")
    public ModelAndView activity() {
        ModelAndView mov = new ModelAndView();
        mov.setViewName("activity/activity");

        return mov;

    }



}
